home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
0Utils13.lha
/
0Utils
/
SRunSX.Doc
< prev
next >
Wrap
Text File
|
1995-04-10
|
1KB
|
65 lines
NAME
SRunSX
SYNOPSIS
SRunSX - SRun Script Execute - Requires v37
INPUTS
"COMMAND/F"
FUNCTION
This is a program very Similar to SRun;
in fact it is just an extension to SRun.
Additionally to the functionality SRun shows,
SRunSX examines its first argument, and if this
is a quoted scriptfile, it explicitely calls
"Execute".
This is a workaround for a bug in Kickstart 2.0-3.1
Boot Shell, which addes a space to the filename, if
a Script is enclosed in brackets an not called via
Execute.
RESULT
STDOUT: the output of the 'command' execution.
RC: returnvalue of SystemTags() or >=10
NOTES
CLI - only
should compile with SAS-C
SRunSX does currently not call ReadArgs, this is due
to a bug(?) in readargs that removes some whitespace
and quotes from argstring even with /F option
(see bugs for consequences)
BUGS
"SRunSX COMMAND commandstring" fails; U _MUST_ use
"SRunSX commandstring"
EXAMPLES
> echo > t:xxx "echo hallo"
> protect t:xxx +s
> t:xxx
hallo
> "t:xxx" ; beware of the quotes!
EXECUTE: Can't open t:xxx
object not found
> echo >"t:xxx " "echo error - this is the wrong script"
> "t:xxx" ; beware of the quotes!
error - this is the wrong script
> SRunSX "t:xxx"
hallo
> SRunSX echo hallo
hallo
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de
Ok, now its slowly becoming a hack ...
(and ok cbm shell IS a hack ...)